package qf.sail.service.impl;

import qf.sail.dao.AddressDao;
import qf.sail.dao.impl.AddressDaoImpl;
import qf.sail.entity.Address;
import qf.sail.service.AddressService;

import java.util.List;

public class AddressServiceImpl implements AddressService {

    private AddressDao addressDao = new AddressDaoImpl();

    /**
     * 获取某个用户的地址列表
     * @param accountId
     * @return
     */
    @Override
    public List<Address> getAddressListByAccountId(long accountId) {
        return addressDao.getAddressListByAccountId(accountId);
    }
}
